package cn.dengta.webapp.im.entity;

import java.util.Date;

import cn.dengta.context.model.WesKit;
import cn.dengta.webapp.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @author zw
 * @since 2022-10-27
 */
@Setter
@Getter
@Accessors(chain = true)
@TableName("im_user_custom_price_config")
public class UserCustomPriceConfig extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/** 价格 */
	Integer price;
	/** 类型：1=单聊；2=语音；3=视频 */
	Integer type;
	/** 亲密度等级 */
	Integer intimacyLevel;
	/** 修改时间 */
	Date updateTime;
	/** 分包 */
	private WesKit wesKit;

	public static UserCustomPriceConfig of(WesKit wesKit, int type, int price, int intimacyLevel) {
		UserCustomPriceConfig config = new UserCustomPriceConfig();
		config.setWesKit(wesKit);
		config.setPrice(price);
		config.setIntimacyLevel(intimacyLevel);
		config.setType(type);
		return config;
	}

	public static final String PRICE = "price";
	public static final String TYPE = "type";
	public static final String INTIMACY_LEVEL = "intimacy_level";
	public static final String UPDATE_TIME = "update_time";
	public static final String WES_KIT = "wes_kit";

}
